<?php
class My_Controller_Action extends Zend_Controller_Action
{
    
    public function preDispatch()
    {
        parent::preDispatch();
        My_Logger::getInstance()
            ->stepIn($this->getRequest()->getParam('module'))
            ->stepIn($this->getRequest()->getParam('controller'))
            ->stepIn($this->getRequest()->getParam('action'));
        My_Logger::getInstance()->info('>>> IN');
    }
    
    public function postDispatch()
    {
        My_Logger::getInstance()->reset();
        My_Logger::getInstance()->info('>>> OUT');
        parent::postDispatch();
    }
    
    public function disableLayout()
    {
        $this->_helper->layout->disableLayout();
    }
    
    public function disableViewRenderer()
    {
        $this->_helper->viewRenderer->setNoRender();
    }

}